<%@ page import = "jp.ac.utokyo.pinyomi.*" %>
<%@ page contentType="text/html; charset=UTF-8" %>

<jsp:useBean id="results" class="jp.ac.utokyo.pinyomi.Results" scope="session"/>
<%
	results.processRequest(request, pageContext);
	String cntx = request.getContextPath();
	String thispage = request.getRequestURI();
%>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<link rel="stylesheet" type="text/css" href="css/changelists.css">
<title>Pinyomi</title>

</head>

<body class="change-list" onload="init()"> 
<div id="container">
<div id="header">
<div id="branding">
<h1 id="site-name">Pinyomi Dictionary Lookup</h1>
</div>
<div id="user-tools">
<a href="<%=cntx%>/searchjp.jsp">Japanese lookup</a> /
<a href="<%=cntx%>/searchch.jsp">Chinese lookup</a>
</div>
</div>

<div id="content" class="flex">
<h1>Pinyomi-lite User Manual </h1>
<div id="content-main">


<h1>Chinese Words Lookup in Pinyomi-lite System</h1>

<p>Current Pinyomi-lite system support the following ways to lookup Chinese
words for Japanese speakers.

<ul>
<li> Using a kana reading. For example, Japanese can use a possible kana reading
"にし べいに かき" to lookup Chinese word "西红柿"

<li>Using a readable component. Although many hanzi are unknown to Japanese,
still large numbers of hanzi are likely to contain some kanji components which
are still readable to Japanese.  For example, the Chinese word "认识" can be
looked up by using Japanese kanji "人 只";

<li>Using a similar kanji. When Japanese see an unknown hanzi, sometimes they will
associate it to a kanji due to the shape similarity. For example, given Chinese
word "无数",  hanzi "无" is unknown but very similar to kanji "天", thus we
support the user to search word "无数" by using query "天 数" 

<li>Using a radical variant. For example, in Chinese word "扫描", the first hanzi "
扫" is unknown to the user, however, the left part "扌" is a variant of kanji "
手", thus the user can use "手 描" to look up the word.  

<li>Using stroke information. There are some unknown hanzi which are difficult to
do transliteration by above methods. For example, the first hanzi "专" in
Chinese word "专用". But Japanese can easily tell the number of strokes in 专
is 4, thus the user can use "4 用" to look up the word.  Furthermore, By
dividing basic strokes into 5 categories, h(horizontal 一), v(vertical 丨亅),
l(left 丿), r(right 丶乀), o(other 乙乚乛), each hanzi can be described by
using a partial stroke order.  For example, hanzi "专" can be described by
first 2 strokes as "hh", or 3 strokes as "hho", but not necessarily all
strokes.  Thus word "专用" can be looked up by using query "hh 用" or "hho 用". 
  
<li> Also a more flexible way to look up words is  provided. In the first version of
the Pinyomi system, the query must be either a kanji string or a kana string,
the mixture of kanji and kana is not supported. But this is not necessarily the
case; all different methods can be mixed together for the convenience of users.
Given the Chinese word "扫描" as an example, the first hanzi "扫" can be mapped
to "手" via "扌", or "hvh" by using the first three strokes or "6" by using the
number of strokes; the second hanzi "描" may have a kana reading "びょう" or "
えが". Thus all the possible combinations, such as " 手　びょう", "hvh えが",
"6 描", can be used to look up the target word in the future.  
</ul>


<p>Here are some examples: (click links to do search)<br>
<table border = 1px> 
<tr> 
<th>Chinese Word</th>
<th>Possible Queries</th>
</tr>

<tr>
<td>西红柿</td>
<td> <a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=にし　べに　かき">  "にし　 べに　 かき" </a>,   "にし 　こう 　かき", "西　紅　柿"</td>
</tr>

<tr>
<td>认识</td>
<td>
<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=人　只">  "人　只" </a>,    
<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=人　口"> "人 　口" </a>,,  "認 　識"</td>
</tr>



<tr>

<td>乒乓球</td>
<td>

<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=兵　兵　球"> "兵　兵　球" </a> , 

<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=丘　丘　きゅう">  "丘　丘　きゅう"</a>  </td>
</tr>

<tr>
<td>无数</td>
<td>"む　すう", 
<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=天　数"> "天　数" </a>, "無　数"</td>
</tr>


<tr>
<td>匆忙</td>

<td>
<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=勿　いそが">  "勿　いそが" </a>,  

<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=5　忙">  "5　忙" </a>,  

<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=lo　忙">  "lo　忙" </a>,  

"lollr　 忙" </td>
</tr>


<tr>
<td>专用</td>

<td>
<a href="searchch.jsp?method=index&dicttype=ch&exact=true&action=Search&query=hho　用"> "hho　用" </a>, 

<a href="searchch.jsp?method=index&dicttype=ch&exact=true&action=Search&query=4　用"> "4　用" </a>,

<a href="searchch.jsp?method=index&dicttype=ch&exact=true&action=Search&query=?　用"> "?　用" </a>,

"専　用" </td>
</tr>

<tr> 
<td>扫描</td>
<td>  "手 描", 

<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=手　びょう">  "手　びょう" </a>,

"6　描", 

<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=hvh　えが">  "hvh　えが" </a> 
</td>

</tr>


<tr> 
<td>汇率</td>
<td>"水　率", 
<a href="searchch.jsp?method=index&dicttype=ch&action=Search&query=5 　りつ"> "5 　りつ" </a> 
</td>
</tr>

</table>

<p><b>Query Syntax: </b>
<ul>
<li> Quotation marks " are only used  to clearly visualize queries in the
above examples, erase them when you input the query in the system.

<li> Each Query is composed of descriptions for each kanji/hanzi in the
word, seperated by blank space; different description methods can be applied to
different characters in the same word.

<li> Question mark ? is used as a wildcard to support some unknown characters.

<li> Stroke desciption can be either stroke number, or the first N strokes (N
is less than 6).

<li> The system provide a "Exact Match" checkbox for the users. Default action 
is "Prefix Match", which will output all the words whose prefix match the queries. 
For example, the query "兵　兵　球" will match words "兵兵球" and "兵兵球台". You
can click the "Exact Match" checkbox to do filtering. 

</ul>


<h1>Japanese Words Lookup in Pinyomi System</h1>
<p>All the ways to lookup Chinese words are also supported in the lookup of
Japanese words for Chinese speakers. Please refer to the above description for
different lookup methods.  We just give several examples here. 

<p>
<table border="1px"> 
<tr> 
<th>Japanese Word</th>  
<th>Possible Queries</th> 
</tr>

<tr> 
<td>非常口</td> 
<td>"fei 　chang 　kou", "fei　 chang　 口"</td>
</tr>


<tr> 
<td>異常</td> 
<td>
<a href="searchjp.jsp?method=index&dicttype=jp&action=Search&query=田　chang"> "田　 chang"</a>, "共　 常"</td>
</tr>

<tr> 
<td>準備</td>
<td>
<a href="searchjp.jsp?method=index&dicttype=jp&exact=true&action=Search&query=淮　用"> "淮　 用" </a> , "十　 用", "zhun　 ?", "zhun　 bei"</td>
</tr>

<tr> 
<td>森厳</td>
<td>"森　 敢",
<a href="searchjp.jsp?method=index&dicttype=jp&action=Search&query=森　广"> "森　广" </a>, "sen　 ?"  </td>
</tr>

<tr> 
<td>衛生</td>
<td>"行　 生", "llv　 sheng"</td>
</tr>

<tr> 
<td>桜花</td>
<td>"木　花", "女　hua", "樱　 hua"  </td>
</tr>


<tr> 
<td>支払</td>
<td>"zhi　 手", "支　 5",
<a href="searchjp.jsp?method=index&dicttype=jp&exact=true&action=Search&query=支　hvh"> "支　hvh" </a>, "支　 hvhor" </td>
</tr>

</table>

<p>

</div>
</div>
</div>
</body>
</html>
